import React from 'react'
import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom'
import config from '../config'
import Index from '@/main/components/AdminPortal/Index';
import talantCom from '@/main/components/AdminPortal/talantCom';
import talantInfoCom from '@/main/components/AdminPortal/talantInfoCom';
import AgencyTelant from '@/main/components/AdminPortal/AgencyTelant';
import Agencylist from '@/main/components/AdminPortal/Agencylist';
import appliesCom from '@/main/components/AdminPortal/appliesCom';
import appliesComapply from '@/main/components/AdminPortal/appliesComapply';
import reason from '@/main/components/AdminPortal/reason';
import reward from '@/main/components/AdminPortal/reward';
import incentiveCom from '@/main/components/AdminPortal/incentiveCom';
import AgencyTalent from '@/main/components/AgencyPortal/AgencyTalent';
import agencyInfo from '@/main/components/AgencyPortal/agencyInfo';
import agencyReport from '@/main/components/AgencyPortal/agencyReport';
const RouterConfig = ({ store }) => (
    <Router basename={config.appPrefix}>
        <Switch>
            <Route exact path='/' component={Index} />
            <Route exact path='/talant' component={talantCom} />
            <Route exact path='/talant/info/:id' component={talantInfoCom} />
            <Route exact path='/AdminAgencyTelant/:id' component={AgencyTelant}></Route>
            <Route exact path='/Agencylist' component={Agencylist}></Route>
            <Route exact path='/applies' component={appliesCom}></Route>
            <Route exact path='/appliesComapply' component={appliesComapply}></Route>

            <Route exact path='/reason' component={reason} />
            <Route exact path='/reward' component={reward} />
            <Route exact path='/incentive' component={incentiveCom}></Route>
            <Route exact path='/AgencyTalent' component={AgencyTalent}> </Route>
            <Route exact path='/agencyInfo/:id' component={agencyInfo}></Route>
            <Route exact path='/agencyReport' component={agencyReport}></Route>
            <Route
                render={() => {
                    return (
                        <Redirect to='/' />
                    );
                }}
            />
        </Switch>
    </Router>
)

export default RouterConfig
